package generics;

/**
 * @author 杨宇
 * @version 1.0 2016/10/27
 */
public class E09_GenericMethods {
    public static void main(String[] args) {
        GenericMethods gm = new GenericMethods();
        gm.f(1,"1",1.0);
    }
}

class GenericMethods {
    public <T, K, P> void f(T t, K k, P p) {
        System.out.println(t.getClass().getName()+","+k.getClass().getName()+","+p.getClass().getName());
    }

    public <T, K> void g(T t, K k, Boolean b) {
        System.out.println(t.getClass().getName()+","+k.getClass().getName()+","+b.getClass().getName());
    }
}
